package com.hp.easyBuy.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

@TableName("t_comment")
public class TComment {


  @TableId(type = IdType.AUTO)
  private long commentid;
  private long userid;
  private String commentquestion;
  @JsonFormat(pattern = "yyyy-MM-dd hh-mm-ss")
  private Date commenttime;
  private String content;
  private long status;

  public long getCommentid() {
    return commentid;
  }

  public void setCommentid(long commentid) {
    this.commentid = commentid;
  }

  public long getUserid() {
    return userid;
  }

  public void setUserid(long userid) {
    this.userid = userid;
  }

  public String getCommentquestion() {
    return commentquestion;
  }

  public void setCommentquestion(String commentquestion) {
    this.commentquestion = commentquestion;
  }

  public Date getCommenttime() {
    return commenttime;
  }

  public void setCommenttime(Date commenttime) {
    this.commenttime = commenttime;
  }

  public String getContent() {
    return content;
  }

  public void setContent(String content) {
    this.content = content;
  }

  public long getStatus() {
    return status;
  }

  public void setStatus(long status) {
    this.status = status;
  }

  @Override
  public String toString() {
    return "TComment{" +
            "commentid=" + commentid +
            ", userid=" + userid +
            ", commentquestion='" + commentquestion + '\'' +
            ", commenttime=" + commenttime +
            ", content='" + content + '\'' +
            ", status=" + status +
            '}';
  }
}
